package com.zy.controller;

import com.zy.Vo.ResultVo;
import com.zy.service.SupperService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/supper")
public class SupperController {
    @Resource
    private SupperService supplierService;
    @GetMapping("/list")
    public Object getSupplierService(){
        return ResultVo.sucess(supplierService.getSupplierList());
    }
}
